<taglib name='Html' />
<div class="Item hr">
    <div class="fr"><a href="{:U('index', array('fid' => $fid))}" class="btn">图片管理</a></div>
    <div class="current">添加焦点图片</div>
</div>
<form name="form1">
<table width="100%" cellspacing="0" cellpadding="0" class="table1">
<present name="language">
<tr>
    <th style="width:10em;">所属语言：</th>
    <td>
    <html:select options="language" name="img[lang]" id="lang" selected="lang" />
     </td>
</tr>
</present> 
  <tr>
    <th style="width:10em;"><label for="fid">所属焦点图</label></th>
    <td><html:select options="focuslist" name="img[fid]" id="fid" selected="fid"/></td>
  </tr>
  <tr>
    <th style="width:10em;"><label for="imgpath">图片地址</label></th>
    <td><input type="text" class="input" name="img[imgpath]" id="imgpath" size="50" placeholder="可以是远程地址" /><input type="button" class="btn btn-open" onclick="SelectImage('form1.imgpath');" value="站内选择" name="Submit2">
    <div class="divpre" id="divpicview"></div>
    </td>
  </tr>
  <tr>
    <th style="width:10em;"><label for="url">链接地址</label></th>
    <td><input name="img[url]" type="text" id="url" class="input" size="50" value="http://"></td>
  </tr>
  <tr>
    <th style="width:10em;"><label for="title">图片提示文字</label></th>
    <td><input name="img[title]" type="text" id="title" class="input" size="30"></td>
  </tr>
  <tr>
    <th style="width:10em;"><label for="title">图片详细描述</label></th>
    <td><textarea class="jq_watermark" id="description" rows="5" cols="70" name="img[description]"  placeholder="图片详细描述">{$description}</textarea> </td>
  </tr>
  <tr>
    <th style="width:10em;"><label for="sortrank">排序</label></th>
    <td><input name="img[sortrank]" value="10" type="text" id="sortrank" class="input" size="5"></td>
  </tr>
  <tr>
    <th style="width:10em;">状态</th>
    <td>
    	<label><input type="radio" name="img[status]" value="1" checked /> 启用</label>
        <label><input type="radio" name="img[status]" value="0" /> 禁用</label>
    </td>
  </tr>
</table>
<div class="commonBtnArea" >
<button class="btn submit">提交添加</button>
</div>
</form>
<include file="FocusImg/javascript" /> 
<script type="text/javascript">
$(function(){
    submitForm("create");
});
</script> 
